package com.ltkj.baseplatform.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ltkj.common.core.annotation.Excel;
import com.ltkj.common.core.web.domain.BaseEntity;

/**
 * 用户收藏对象 wuser_collect
 * 
 * @author chenzeen
 * @date 2023-08-31
 */
@ApiModel(value = "用户收藏")
public class WuserCollect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty("主键")
    private Long id;

    /** 内容业务类型 */
    @Excel(name = "内容业务类型")
    @ApiModelProperty("内容业务类型")
    private String contentType;

    /** 内容id */
    @Excel(name = "内容id")
    @ApiModelProperty("内容id")
    private Long contentId;

    /** 收藏日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收藏日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("收藏日期")
    private Date collectDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setContentType(String contentType) 
    {
        this.contentType = contentType;
    }

    public String getContentType() 
    {
        return contentType;
    }
    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setCollectDate(Date collectDate) 
    {
        this.collectDate = collectDate;
    }

    public Date getCollectDate() 
    {
        return collectDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contentType", getContentType())
            .append("contentId", getContentId())
            .append("collectDate", getCollectDate())
            .toString();
    }
}
